body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.header {
  font-size: 28px;
  font-weight: bold;
  color: #3b82f6;
  margin: 20px 0 30px;
  text-align: center;
}

/* 容器居中 */
.container {
  display: flex;
  justify-content: space-between;
  padding: 30px;
  gap: 3%;
  max-width: 1200px;
  margin: 0 auto;
  height: 100vh;
  background-color: #f4f7f6;
}

/* 左侧区域 */
.left-section {
  width: 62%;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 右侧区域 */
.right-section {
  width: 38%;
  padding: 30px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 16px;
  border-radius: 8px;
  padding: 15px;
  color: #333;
  background: #d1d5db;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* 左上角箭头按钮样式 */
.left-arrow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #007bff;
  color: white;
  border: none;
  width: 80px;
  /* 宽度 */
  height: 50px;
  /* 高度 */
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s;
  position: absolute;
  /* 使用绝对定位 */
  top: 20px;
  /* 距离顶部 20px */
  left: 20px;
  /* 距离左侧 20px */
  border-radius: 8px;
  /* 有轻微圆角，当然可以去掉 */
}

/* 箭头符号 */
.left-arrow-button::after {
  content: "病历生成";
  /* 左箭头符号 */
  font-size: 15px;
}

/* 悬停效果 */
.left-arrow-button:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

.left-arrow-button:active {
  transform: scale(1);
}

.down-arrow-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #007bff;
  color: white;
  border: none;
  width: 80px;
  /* 宽度 */
  height: 50px;
  /* 高度 */
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s, transform 0.3s;
  position: absolute;
  /* 使用绝对定位 */
  top: 20px;
  /* 距离顶部 20px */
  right: 20px;
  /* 距离右侧 20px */
  border-radius: 8px;
  /* 有轻微圆角，当然可以去掉 */
}

/* 箭头符号 */
.down-arrow-button::after {
  content: "数据导出";
  /* 右箭头符号 */
  font-size: 15px;
}

/* 悬停效果 */
.down-arrow-button:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

.down-arrow-button:active {
  transform: scale(1);
}

.question {
  font-size: 16px;
  line-height: 1.6;
  padding: 15px;
  background-color: #f9fafb;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: #333;
  overflow-y: auto;
  /* 当内容高度超出时，垂直方向显示滚动条 */
  overflow-x: hidden;
  /* 禁止水平滚动条 */
}

.answer {
  font-size: 16px;
  line-height: 1.6;
  padding: 15px;
  background-color: #f9fafb;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  color: #333;
  overflow-y: auto;
  /* 当内容高度超出时，垂直方向显示滚动条 */
  overflow-x: hidden;
  /* 禁止水平滚动条 */
}

.answer-container {
  display: flex;
  gap: 20px;
}

.answer-left,
.answer-right {
  width: 48%;
}

.button-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.button {
  padding: 14px 24px;
  font-size: 18px;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
  width: 48%;
}

.button:hover {
  opacity: 0.8;
}

.reject-button {
  background-color: #d32f2f;
  /* 柔和红色 */
}

.approve-button {
  background-color: #388e3c;
  /* 柔和绿色 */
}

/* 饼图容器 */
.pie-chart-container {
  height: 300px;
}

/* 数据状态网格 */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.data-cell {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: block;
}

/* 适配小屏幕 */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 40px;
  }

  .left-section,
  .right-section {
    width: 100%;
    display: grid;
    height: 100vh;
    grid-template: auto 1fr auto / auto 1fr auto
  }

  .answer-container {
    flex-direction: column;
  }
}